<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<cpn v-show="isShow"></cpn>
		</div>
	</body>
	<template id="cpn">
		<div>
			<div>我是组件</div>
		</div>
	</template>
	<script type="text/javascript">
		const app = new Vue({
			el: '#app',
			data: {
				message: '你好',
				isShow: true
			},
			components: {
				cpn: {
					template: "#cpn",
					data() {
						return {
							isShow: false
						}
					}
				}
			}
		})
	</script>
</html>
